import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;


public class LiczbyTestUnit4 {
	public Liczby testowa;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		testowa=new Liczby(20);
	}

	

	@Test
	public void test1() {
		assertNotNull(testowa);	
	}
	
	public void test2() {
		assertEquals("10100",testowa.Zamiana(2));
	}
	@Test(timeout=100)
	public void test3() {
		assertSame(Integer.valueOf(14), Integer.valueOf(testowa.Zamiana(16)));
	}
	@After
	public void test4() {
		assertNotSame(testowa.Zamiana(11), null);
	}
	@Ignore
	public void test5() {
		assertEquals(Integer.parseInt("32"),Integer.parseInt(testowa.Zamiana(6)));
	}

}
